#!/usr/bin/python

# if --elif--else
# while -- else
# for -- else
# break -- quit loop
# continue -- quit curr loop process, enter next

number = 23
running = True
raw_input('game start')

#while loop
while running:
	guess= raw_input('enter an int:')
	if guess=='quit':
		break
	try:
		guess = int(guess)  #throws exp
	except:
		print 'not a number'
		continue

	if guess==number:
		print 'you got it'
		running = False
	elif guess<number:
		print 'higer'
	else:
		print 'lower'
else: 
	print 'while loop is over'

# for loop
for i in range(1,5):
	if i==3:
		continue
	print i
else:
	print 'for loop is over'